Skip to content

fix(client): don't validate no-ETag full read against stale total#351

Merged
alecthomas merged 1 commit into
mainfrom
aat/parallelget-no-etag-full-read-length
Jun 24, 2026
Merged

fix(client): don't validate no-ETag full read against stale total#351
alecthomas merged 1 commit into
mainfrom
aat/parallelget-no-etag-full-read-length

Conversation

@alecthomas

@alecthomas alecthomas commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

In the no-ETag fallback, ParallelGet did a fresh full Open but validated
its body length against the total from the earlier discovery request.
Since the full read is a separate request that may observe a different
revision, that check could spuriously fail a valid download. Pass -1 so
the completeness check is skipped, matching the existing full-body path
and relying on transport-level EOF detection.

In the no-ETag fallback, ParallelGet did a fresh full Open but validated
its body length against the total from the earlier discovery request.
Since the full read is a separate request that may observe a different
revision, that check could spuriously fail a valid download. Pass -1 so
the completeness check is skipped, matching the existing full-body path
and relying on transport-level EOF detection.

Co-authored-by: Codex <noreply@openai.com>
@alecthomas alecthomas requested a review from a team as a code owner June 24, 2026 02:29
@alecthomas alecthomas requested review from jrobotham-square and removed request for a team June 24, 2026 02:29
@alecthomas alecthomas enabled auto-merge (squash) June 24, 2026 02:29
@alecthomas alecthomas merged commit 0c19621 into main Jun 24, 2026
8 checks passed
@alecthomas alecthomas deleted the aat/parallelget-no-etag-full-read-length branch June 24, 2026 02:31

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d8cc1d6252

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread client/parallel_get.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant